/*
 * Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.xgithubclient.core.db.entity;


// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

/**
 * Entity mapped to table "TRACE_REPO".
 */
@DatabaseTable(tableName = "trace_repo")
public class TraceRepo {

    @DatabaseField(generatedId = true)
    private long Id;

    @DatabaseField
    private String name;
    @DatabaseField
    private String description;
    @DatabaseField
    private String language;
    @DatabaseField
    private Integer stargazersCount;
    @DatabaseField
    private Integer watchersCount;
    @DatabaseField
    private Integer forksCount;
    @DatabaseField
    private Boolean fork;
    @DatabaseField
    private String ownerLogin;
    @DatabaseField
    private String ownerAvatarUrl;
    @DatabaseField
    private Date startTime;
    @DatabaseField
    private Date latestTime;
    @DatabaseField
    private Integer traceNum;

    public TraceRepo() {
    }

    public TraceRepo(long id) {
        this.Id = id;
    }

    public TraceRepo(long id, String name, String description, String language, Integer stargazersCount, Integer watchersCount, Integer forksCount, Boolean fork, String ownerLogin, String ownerAvatarUrl, java.util.Date startTime, java.util.Date latestTime, Integer traceNum) {
        this.Id = id;
        this.name = name;
        this.description = description;
        this.language = language;
        this.stargazersCount = stargazersCount;
        this.watchersCount = watchersCount;
        this.forksCount = forksCount;
        this.fork = fork;
        this.ownerLogin = ownerLogin;
        this.ownerAvatarUrl = ownerAvatarUrl;
        this.startTime = startTime;
        this.latestTime = latestTime;
        this.traceNum = traceNum;
    }

    public long getId() {
        return Id;
    }

    public TraceRepo setId(long id) {
        Id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public TraceRepo setName(String name) {
        this.name = name;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public TraceRepo setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getLanguage() {
        return language;
    }

    public TraceRepo setLanguage(String language) {
        this.language = language;
        return this;
    }

    public Integer getStargazersCount() {
        return stargazersCount;
    }

    public TraceRepo setStargazersCount(Integer stargazersCount) {
        this.stargazersCount = stargazersCount;
        return this;
    }

    public Integer getWatchersCount() {
        return watchersCount;
    }

    public TraceRepo setWatchersCount(Integer watchersCount) {
        this.watchersCount = watchersCount;
        return this;
    }

    public Integer getForksCount() {
        return forksCount;
    }

    public TraceRepo setForksCount(Integer forksCount) {
        this.forksCount = forksCount;
        return this;
    }

    public Boolean getFork() {
        return fork;
    }

    public TraceRepo setFork(Boolean fork) {
        this.fork = fork;
        return this;
    }

    public String getOwnerLogin() {
        return ownerLogin;
    }

    public TraceRepo setOwnerLogin(String ownerLogin) {
        this.ownerLogin = ownerLogin;
        return this;
    }

    public String getOwnerAvatarUrl() {
        return ownerAvatarUrl;
    }

    public TraceRepo setOwnerAvatarUrl(String ownerAvatarUrl) {
        this.ownerAvatarUrl = ownerAvatarUrl;
        return this;
    }

    public Date getStartTime() {
        return startTime;
    }

    public TraceRepo setStartTime(Date startTime) {
        this.startTime = startTime;
        return this;
    }

    public Date getLatestTime() {
        return latestTime;
    }

    public TraceRepo setLatestTime(Date latestTime) {
        this.latestTime = latestTime;
        return this;
    }

    public Integer getTraceNum() {
        return traceNum;
    }

    public TraceRepo setTraceNum(Integer traceNum) {
        this.traceNum = traceNum;
        return this;
    }

    @Override
    public String toString() {
        return "TraceRepo{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", language='" + language + '\'' +
                ", stargazersCount=" + stargazersCount +
                ", watchersCount=" + watchersCount +
                ", forksCount=" + forksCount +
                ", fork=" + fork +
                ", ownerLogin='" + ownerLogin + '\'' +
                ", ownerAvatarUrl='" + ownerAvatarUrl + '\'' +
                ", startTime=" + startTime +
                ", latestTime=" + latestTime +
                ", traceNum=" + traceNum +
                '}';
    }
}
